package com.iteaj.network.test.server.line.protocol;

import com.iteaj.network.server.protocol.ClientInitiativeProtocol;
import com.iteaj.network.test.DireType;
import com.iteaj.network.test.MessageCreator;
import com.iteaj.network.test.server.line.LineMessage;

/**
 * 设备请求平台的测试协议
 */
public class LineDeviceRequestProtocol extends ClientInitiativeProtocol<LineMessage> {

    public LineDeviceRequestProtocol(LineMessage requestMessage) {
        super(requestMessage);
    }

    @Override
    protected LineMessage doBuildResponseMessage() {
        return MessageCreator.lineBuild(getEquipCode(), DireType.PRes, requestMessage());
    }

    @Override
    protected void doBuildRequestMessage(LineMessage requestMessage) {

    }


    @Override
    public DireType protocolType() {
        return DireType.DReq;
    }

}
